home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
graphic
/
rastms34.zip
/
RM.DOC
< prev
next >
Wrap
Text File
|
1993-01-27
|
12KB
|
340 lines
Raster Master V3.4
(c) Copyright 1991-93 by Scarborough Digital.
All Rights Reserved.
INTRODUCTION
Raster Master is a powerful graphic editor that allows
programmers and developers to create and manipulate small images.
Raster Master can edit images from 1X1 pixel up to 100X100
pixels. Images can be saved in standard PCX format or as source
code making it easy to add to your programs. Raster Master was
designed to work in conjunction with other toolkits and graphic
libraries such as Fastgraph and TEGL Windows Toolkit as well as
the standard graphic libraries for Turbo C, QuickC, Turbo Pascal,
and QuickBasic. Additional BMP and ICO formats are supported for
Windows 3.
REQUIREMENTS
VGA Card, SVGA optional for the 256 color mode
Mouse
DOS 3.0 or higher
USING THE EDITOR
OPEN/SAVE: Click in the FILENAME area and type in the name.
Any FILE in the FILE LISTING can be selected by simply pointing
to it.
DIRECTORIES can be accessed in one of two ways. Either by
changing the contents of the DIRECTORY area or pointing to the
actual directory in the listing.
CHANGING THE OPEN FORMAT: Press the RIGHT mouse button over the
OPEN gadget.
CHANGING THE SAVE FORMAT: Press the RIGHT mouse button over the
SAVE gadget.
Use the up and down gadgets to select the new format.
CLR Clears the screen.
UNDO Deletes last step taken.
GRID Toggles the grid ON/OFF.
SIZE Allows you to select the size of the zoom area.
25x25, 50x50, 100x100 pixels are supported. The
scrollers can be used to move to different areas
of the image when in the 25x25 or 50x50 zoom mode.
VIEW Previews drawing in one of the listed resolutions.
MODE Toggles between 16 and 256 color mode.
Note: ONLY registered users will be given the
opportunity to save their images in the 256
color mode.
EXIT Exits Raster Master.
CLIP Switches to clip mode allowing you perform the
following functions.
OPEN/SAVE: Works the same way as the OPEN/SAVE
described above. When OPENing/Saving,
only the clipped area will be affected.
HFLIP/VFLIP: Horizontally/vertically flips the
clipped image.
LEFT/RIGHT/UP/DOWN: Scrolls the clipped image in
the appropriate direction.
EXIT: Returns to the main menu.
DRAWING TOOLS
FREEHAND DRAWING Move the pointer inside the zoom area and
click to plot a pixel.
SPRAY PAINT Randomly plot pixels until release of mouse
button.
FLOOD PAINT Fills an enclosed area with the current
color.
ALL remaining tools work by selecting the starting point,
dragging the mouse, then releasing the mouse button.
SELECTING COLORS
Simply select the color of your choice. In the 256 color mode
you can scroll through the remaining colors by pressing on the up
or down gadgets.
PALETTE EDITING
Press the PAL gadget, select a color, use the RGB scrollers and
gadgets to modify the color.
ADDING GRAPHICS TO YOUR PROGRAMS
One of the great features of Raster Master is its ability
create images compatible with the standard graphic libraries
included with Turbo C, QuickC, Turbo Pascal, and QuickBASIC.
Raster Master also supports additional libraries like Fastgraph
and TEGL Windows Toolkit. Source code can be generated for
images, palettes, and mouse pointers.
1. RM RAW - Raster Master's RAW format.
2. Palette - Binary format containing RBG values.
3. Palette (C) - Source code in C for the palette.
4. Palette (PAS) - Source code in Pascal for the palette.
5. Palette (BAS) - Source code in BASIC for the palette.
6. TP/TC (Binary) - Turbo C/Pascal binary image format to
be displayed with the putimage
function.
see Demo1.c for Turbo C
see Demo1.pas for Turbo Pascal
For 256 color images you must use the
supplied SVGA256.bgi driver.
7. TP Constants - Turbo Pascal source code for format 6
see Demo2.pas
8. TC Constants - Turbo C source code for format 6
see Demo2.c
9. QC/QB (Binary) - QuickC/BASIC binary image format to be
displayed with _putimage (QC) or PUT
(QB).
See Demo3.c for QuickC
See Demo1.bas for QuickBASIC
10. QC Constants - QuickC source code for format 9
see Demo4.c
11. BASIC DATA - QuickBASIC source code for format 9
see Demo2.bas
12. TEGL DEF - TEGL Windows Toolkit text based HEX
format
Refer to manual and TEGL code for DEF.
13. PPR Fastgraph - Fastgraph Packed Pixel Run format. 16
colors or less.
14. SPR Fastgraph - Fastgraph Single Pixel Run format. max
256 colors.
15. FG PPR (C) - C code for format 13
16. FG SPR (C) - C code for format 14
17. FG PPR (PAS) - Pascal code for format 13
18. FG SPR (PAS) - Pascal code for format 14
19. FG PPR (BAS) - Basic code for format 13
20. FG SPR (BAS) - Basic code for format 14
Refer to the Fastgraph user and
reference manuals.
Use the included program xinfo.exe to
obtain the run count and width from
Raster Master created SPR and PPR
files.
21. Mouse (C) - C code for mouse image.
22. Mouse (PAS) - Pascal code for mouse image.
23. Mouse (BAS) - Basic code for mouse image
When saving in this format only the
first 16X16 pixels from the left top
corner will be saved. If the image is
clipped only the first 16X16
pixels starting from the top left
corner of the clipped image will be
saved.
The colors black, white, and dark blue
are used to build the mouse image. Dark
blue will be considered transparent.
Any other color is used to indicate that
the screen pixel under the mouse image
will be inverted.
THE 'RAW' FORMAT
Raster Master supports its own format for saving and retrieving
files. The format is broken up into three main parts. The
Header, Palette, and Image portions.
--- HEADER ---
Bytes
-----
1 , 2 - Width of Image
3 , 4 - Height of Image
5 , 6 - Number of Colors - if 0 image does not contain a palette
--- PALETTE ---
7 , 8 , 9 - Red, Green, Blue values of the first color.
The values will range from 0 to 63. Each additional
three bytes indicate the values of the next color.
For an image that contains 16 colors the PALETTE
size will be 48 bytes (3*16).
--- IMAGE ---
What ever follows after the palette is the actual image. The
first byte following the palette will be the first pixel starting
from th